//
//  MineAboutViewController.m
//  Rail
//
//  Created by hychen on 2018/2/25.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "MineAboutViewController.h"

@interface MineAboutViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;
@property (weak, nonatomic) IBOutlet UIImageView *codeView;
@property (weak, nonatomic) IBOutlet UIView *bgView;

@end

@implementation MineAboutViewController

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [self.view sendSubviewToBack:self.bgView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self isShowBackBtn:YES];
    
    self.view.backgroundColor = kWhiteColor;
    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
    self.titleLabel.text = [NSString stringWithFormat:@"%@: V%@",app_Name,app_Version];
    self.iconView.image = [UIImage imageNamed:@"about_logo_ic"];
    self.descLabel.text = @"墨子工道安全数智客户端是一款专注于地铁施工现场综合性的移动应用管理软件，它为地铁施工单位、监理单位、建设单位等相关管理单位的人员提供图形化的地铁线路信息查看、移动化的远距离视频监控、门禁进出登记、人脸采集、环境指标动态监测等信息化服务，内含定制化的专业对讲广播系统可支持复杂环境下的各种语音通信方式，极大地便利各单位层级人员及工区内的语音通信服务，通过该应用您也可以及时了解到地铁行业最新发布的动态资讯及相关公告通知信息等。";
    self.codeView.image = [UIImage imageNamed:@"about_rd_img"];
    
    //Nav
    [self.navigationItem addSimpleTitleView:@"关于我们"];
    
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    [button setBackgroundImage:[UIImage imageNamed:@"app_title_bar_share_n"] forState:UIControlStateNormal];
//    [button setBackgroundImage:[UIImage imageNamed:@"app_title_bar_share_p"] forState:UIControlStateHighlighted];
//    [button addTarget:self action:@selector(rightNavClick) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:button];
//    self.navigationItem.rightBarButtonItem = item;
}

//- (void)rightNavClick
//{
//    NSLog(@"分享点击");
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
